import { withInstall } from '@ibiz-template/vue3-util';
import { App } from 'vue';
import { registerEditorProvider } from '@ibiz-template/runtime';
import { FilterSelectProvider } from './provider';
import { FilterSelect } from './filter-select';

export const IBizFilterSelect = withInstall(FilterSelect, function (v: App) {
  v.component(FilterSelect.name, FilterSelect);
  registerEditorProvider(
    'ADDRESSPICKUP_FILTER_SELECT',
    () => new FilterSelectProvider(),
  );
});
export default IBizFilterSelect;
